//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package 力扣.题库.未分类;

import java.util.Arrays;

public class demo_1502 {
    public demo_1502() {
    }

    public boolean canMakeArithmeticProgression(int[] arr) {
        Arrays.sort(arr);
        int a = arr[1] - arr[0];

        for(int i = 1; i < arr.length; ++i) {
            if (arr[i] - arr[i - 1] != a) {
                return false;
            }
        }

        return true;
    }
}
